<?
$news=$newModule->getNews(1,10,"","4");
?>
<li id="page_NEW">
    <div class="slogan">Tin Tức</div>
    <div class="box">
        <div class="subbox">
            <div class="col7">
                <h2>Coffee News</h2>
                <br/>
                <div>
                    <?
                    foreach($news as $new){
                        if($new["image"]) $small_img=$new["image"];
                        if($new["small_image"]) $small_img=$new["small_image"];
                        $insert = new DateTime($new["insert"]);
                    ?>
                    <div class="new-item brief" style="position: relative">
                        <?
                        if($small_img){
                        ?>
                        <div class="img-news" style="">
                            <div class="time_block" style="position: absolute;top: 4px;left: 4px;">
                                <?=date_format($insert,"d")?><br>
                                <span><?=date_format($insert,"M")?></span>
                            </div>
                            <img src="<?=$small_img?>"/>
                        </div>
                        <?
                        }else{
                        ?>
                        <div class="time_block left">
                            <?=date_format($insert,"d")?><br>
                            <span><?=date_format($insert,"M")?></span>
                        </div>
                        <?}?>
                        <h4><a><?=$new["title"]?></a></h4>
                        <p>
                            <?=$new["brief"]?>
                        </p>
                        <a href="#!/page_MORE" class="button-more" 
                        onclick="loadmore('<?=$new["id"]?>');"
                        style="position: absolute;bottom: 16px;right: 30px">Chi Tiết</a>
                    </div>
                    <div class="clear"></div>
                    <?}?>




                </div>
            </div>
            <div class="col8">
                <h2>Coffee News</h2>
                <br/>
            </div>
            <div class="clear"></div>
        </div>
    </div>
</li>